{% extends 'layout/manage.html' %} 
{% load static %} 
{% block css %}
<link
  rel="stylesheet"
  href="{% static 'plugin/editor-md/css/editormd.preview.min.css' %}"
/>
<style>
  .panel-default {
    margin-top: 10px;
  }

  .panel-default .panel-heading {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
  }

  .panel-body {
    padding: 0;
  }

  .title-list {
    border-right: 1px solid #dddddd;
    min-height: 500px;
  }

  .title-list ul {
    padding-left: 15px;
  }

  .title-list ul a {
    display: block;
    padding: 5px 0;
  }

  .content {
    border-left: 1px solid #dddddd;
    min-height: 600px;
    margin-left: -1px;
  }
</style>
{% endblock %} 
{% block content %}
<!-- 显示 wiki 表数据 SMT段 -->
<div class="container mt-4">
  <h2>交接清单</h2>
  <table class="table table-striped">
      <thead>
          <tr>
              <th>ID</th>
              <th>机种</th>
              <th>站点</th>
              <th>交接标题</th>
              <th>优先级</th>
              <th>责任单位</th>
              <th>设备类型</th>
              <th>机台编号</th>
              <th>处理时间</th>
              <th>处理人员</th>
              <th>创建时间</th>
          </tr>
      </thead>
      <tbody>
          {% for wiki in wikis %}
            {% if wiki.Station.belong_to == 'AOI' %}
              <tr>
                  <td>{{ wiki.id }}</td>
                  <td>{{ wiki.product.name }}</td>
                  <td>{{ wiki.Station }}</td>
                  <td>
                    <a href="{% url 'wiki' project_id=request.tracer.project.id %}?wiki_id={{wiki.id}}"> {{ wiki.title }}</a>
                  
                  </td>
                  <td>{{ wiki.priority }}</td>
                  <td>{{ wiki.Station.belong_to }}</td>
                  <td>{{ wiki.Station.catogory }}</td>
                  <td>{{ wiki.Station.equip_no }}</td>
                  <td>{{ wiki.deal_time }} min</td>
                  <td>{{ wiki.deal_person }}</td>
                  <td>{{ wiki.create_datetime|date:"Y-m-d H:i:s" }}</td>

                </tr>
              {% endif %}
            {% empty %}
            <tr>
                <td colspan="3" class="text-center">没有站点数据</td>
            </tr>
          {% endfor %}
      </tbody>
  </table>
</div>

{% endblock %}
 {% block js %}
<script src="{% static 'plugin/editor-md/editormd.min.js' %}"></script>
<script src="{% static 'plugin/editor-md/lib/marked.min.js' %}"></script>
<script src="{% static 'plugin/editor-md/lib/prettify.min.js' %}"></script>
<script src="{% static 'plugin/editor-md/lib/raphael.min.js' %}"></script>
<script src="{% static 'plugin/editor-md/lib/underscore.min.js' %}"></script>
<script src="{% static 'plugin/editor-md/lib/sequence-diagram.min.js' %}"></script>
<script src="{% static 'plugin/editor-md/lib/flowchart.min.js' %}"></script>
<script src="{% static 'plugin/editor-md/lib/jquery.flowchart.min.js' %}"></script>


{% endblock %}
